[//

    async function( kuo,Context,context){
        let LANG = this.LANG();
        let $DATA = Object.assign({},this.$DATA);
        let $hash = 'safetoken/'+kuo.adminid;
        $DATA.token = Mode("Tools").Uuid();
        await Mem.Set($hash,$DATA.token);
        let  $kongzhi = kuo.Path.length > 0?kuo.Path[kuo.Path.length-1]:"get";
        let  $db = await db('adminlog');
        let  $_GET = kuo.get;
        let  $_POST = kuo.post;
        let  $features = await Kuoplus(kuo.class);
        let  $chushi = true;
        if($kongzhi == 'get'){
    
            let $page = Mode("Tools").Int($_GET['page']?$_GET['page']:1);
            let $limitx  =  Mode("Tools").Int($_GET['limit']?$_GET['limit']:10);
            if($limitx < 10 ){
                $limitx = 10;
            }else if($limitx > 100 ){
                $limitx = 100;
            }
            let $Where ={};

            if(isset($_GET['type']) && $_GET['type'] != ""){
                $chushi = false; 
                $Where['type'] = $_GET['type'];
            }
            if(isset($_GET['uid']) && $_GET['uid'] != ""){
                $chushi = false; 
                $Where['uid'] = $_GET['uid'];
            }
            if(isset($_GET['controller']) && $_GET['controller'] != ""){
                $chushi = false; 
                $Where['controller'] = $_GET['controller'];
            }
            if(isset($_GET['mode']) && $_GET['mode'] != ""){
                $chushi = false; 
                $Where['mode'] = $_GET['mode'];
            }
            if(isset($_GET['ip']) && $_GET['ip'] != ""){
                $chushi = false; 
                $Where['ip'] = $_GET['ip'];
            }
        
            if(isset($_GET['atimestart']) && $_GET['atimestart'] != ""){
                $chushi = false; 
                $Where['atime >'] = strtotime($_GET['atimestart']);
            }
            if(isset($_GET['atimeend']) && $_GET['atimeend'] != ""){
                $chushi = false; 
                $Where['atime <'] = strtotime($_GET['atimeend']);
            }
            let $data  = await $db.Where($Where).Limit($limitx,$page).Order("id desc").Select();
            let $total = await $db.Where($Where).Total();
            if(!$data){
                $data= [];
            }
            $DATA.code = 0;
            $DATA.count = $total;
            if($page == 1 && $chushi){
                $DATA.type = $features['configure']['adminlogtype']
            }
            $DATA.data = $data;
    
        }else if($kongzhi == 'put'){
           
        }else if($kongzhi == 'add'){
    
    
           
    
        }else if($kongzhi == 'del'){
    
        }
        
        Context.body = JSON.stringify($DATA);
    }
    
    ]